package com.xiaoxin.yixinai.activity.wxuser;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xiaoxin.yixinai._frame.base.BaseModel;

/**
 * 活动微信用户类
 * @author wsg
 *
 */
@Entity
@Table(name = "tb_activity_wx_user")
public class WxUser extends BaseModel {

    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    /**
     * 活动id
     */
    @Column(name = "activity_id")
    private Integer activityId;
    
    /**
     * 推广人id
     */
    @Column(name = "parent_id")
    private Integer parentId;
    
    /**
     * 级别（从1开始）
     */
    @Column(name = "grade")
    private Integer grade;
    
    /**
     * 微信open_id
     */
    @Column(name = "openid")
    private String openid;
    
    /**
     * 微信账号
     */
    @Column(name = "account")
    private String account;
    
    /**
     * 微信昵称
     */
    @Column(name = "nick_name")
    private String nickName;
    
    /**
     * 性别
     */
    @Column(name = "sex")
    private Integer sex;
    
    /**
     * 
     */
    @Column(name = "city")
    private String city;
    
    /**
     * 
     */
    @Column(name = "province")
    private String province;
    
    /**
     * 
     */
    @Column(name = "country")
    private String country;
    
    /**
     * 
     */
    @Column(name = "language")
    private String language;
    
    /**
     * 微信头像
     */
    @Column(name = "headimgurl")
    private String headimgurl;
    
    /**
     * 转发次数
     */
    @Column(name = "forward_num")
    private Integer forwardNum;
    
    /**
     * 预览次数
     */
    @Column(name = "view_num")
    private Integer viewNum;
    
    /**
     * 预览人数
     */
    @Column(name = "view_user_num")
    private Integer viewUserNum;
    
    /**
     * 最后预览时间
     */
    @Column(name = "view_last_time")
    private Date viewLastTime;
    
    /**
     * 最后预览时长
     */
    @Column(name = "view_seconds")
    private Integer viewSeconds;
    
    @Column(name = "company_id")
    private Integer companyId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getActivityId() {
		return activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}

	public Integer getForwardNum() {
		return forwardNum;
	}

	public void setForwardNum(Integer forwardNum) {
		this.forwardNum = forwardNum;
	}

	public Integer getViewNum() {
		return viewNum;
	}

	public void setViewNum(Integer viewNum) {
		this.viewNum = viewNum;
	}

	public Integer getViewUserNum() {
		return viewUserNum;
	}

	public void setViewUserNum(Integer viewUserNum) {
		this.viewUserNum = viewUserNum;
	}

	public Date getViewLastTime() {
		return viewLastTime;
	}

	public void setViewLastTime(Date viewLastTime) {
		this.viewLastTime = viewLastTime;
	}

	public Integer getViewSeconds() {
		return viewSeconds;
	}

	public void setViewSeconds(Integer viewSeconds) {
		this.viewSeconds = viewSeconds;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

    
    
}
